﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MvcLinks.Models
{
    public class MyModel
    {
        // prop
        [Range(1, 20, ErrorMessage = "ฮ่วย {0} ต้องเป็น {1} - {2}")]
        public int n { get; set; }
        [Required]
        [StringLength(5)]
        public string msg { get; set; }
    }
}